# -*- coding: UTF-8 -*-

print [x * x for x in range(1, 11)]


# g = (x * x for x in range(1, 11))
# print next(g)
# print next(g)
# print next(g)
# print next(g)
# print next(g)
# print next(g)
# print next(g)
# print next(g)
# print next(g)
# print next(g)

# g2 = (x * x for x in range(1, 11))
# for item in g2:
#     print item
#
print [val for val in (x * x for x in range(1, 11))]


def odd():
    print('step 1')
    yield 1
    print('step 2')
    yield (3)
    print('step 3')
    yield (5)


o = odd()
next(o)
next(o)
next(o)
